/**
 * @date 9:47:26 AM
 * EducationAnswerResponse.java
 * Administrator
 * TODO
 */
package com.qs.education.bean.beans;
import java.util.List;

import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.qs.education.bean.api.ResponseBean;
import com.qs.education.bean.entity.EducationQuestion;
import com.qs.education.bean.entity.EducationStudentQuestion;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @class EducationAnswerResponse	
 * @author Warren
 * @description
 * @date Nov 15, 2018 
 */
@Data
@EqualsAndHashCode(callSuper=true)
public class EducationAnswerResponse extends ResponseBean{
	private Long id;
	private String description;
	private String image;
	
	@ManyToOne
	@JoinColumn(name="question_id")
	@JsonIgnoreProperties(value = { "lesson","answerList"})	
	private EducationQuestion question;
	
	@OneToMany
	@JoinColumn(name = "answer_id")
	@JsonIgnoreProperties(value = { "homeworkQuestion","student" ,"answer" })	
	private List<EducationStudentQuestion> educationStudentQuestionList;
	
}
